package com.audaque.springboot.foshanupload.web.openfeigndemo.feign.api;

import com.audaque.springboot.foshanupload.openfeign.interceptor.FeignRequestInterceptor;
import com.audaque.springboot.foshanupload.web.openfeigndemo.feign.api.fallback.FeignFallback;
import com.audaque.springboot.foshanupload.web.openfeigndemo.service.FeignService;
import org.springframework.cloud.openfeign.FeignClient;

@FeignClient(
        //value，name二选一
        //name：服务名称 （注：若使用注册中心，此处应该写生产者服务名称）
        name = "openfeigndemo-local-feign",
        //url：生产者的url地址
        url = "http://localhost:8881/openfeigndemo",
        //前缀
        path = "/feign",
        configuration = FeignRequestInterceptor.class,
        fallback = FeignFallback.class
)
public interface FeignFeign extends FeignService {


}